package com.example.demo.dao;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.Map;

@Repository
public interface LoginDao {
    @Select("select * from user where name = #{name} and password = #{password}")
    Map<String, Object> userInfo(@Param("name") String name, @Param("password") String password);
}
